import indexModel from '../../models/indexModel'

export const getSearchData = (sj) => dispatch => {
  // 网络请求
  indexModel.getSearch(sj).then(ret => {
    dispatch({
      type: 'setSearch',
      payload: ret
    })
  })
}
export const  clearSearch= () => ({
  // 清空
   type:'clearsearch'
})

export const  DisSearch= () => ({
  // 禁用
   type:'disableBtn'
})

